package com.gxa.admin.controller;

import com.gxa.common.vo.ResultVo;
import com.gxa.modules.service.BasicInformationService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/basic")
@Api(value = "客户基本信息test",tags = "客户基本信息接口API--周军国")
public class BasicInformationController {
    @Autowired(required = false)
private BasicInformationService basicInformationService;
    @GetMapping("/information")
    @ApiOperation(value = "客户基本信息查询接口",notes = "客户基本信息查询接口",httpMethod = "GET", response = ResultVo.class)
    @ApiImplicitParam(name = "loan_id",value = "贷款主键id",paramType = "query",dataType = "String", required = false)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
 public ResultVo basicInformation(long loan_id){
    ResultVo resultVo=new ResultVo();
    resultVo=basicInformationService.basicInformation(loan_id);
    return resultVo;
 }
}
